﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 鸡兔同笼
{
    class Program
    {
         static void Main(string[] args)
        {
         
            for (int ji = 1; ji < 35; ji++)
            {
                for (int tu = 1; tu < 35; tu++)
                {
                    int x = ji * 2 + tu * 4;
                    int y = ji + tu;
                    if (x == 94 && y == 35)
                    {

                        Console.WriteLine("\n 答：鸡一共有 {0} 只, 兔一共有 {1} 只", ji, tu);

                        Console.ReadKey();
                    }
                }
            }
        }

    }
}
